home *** CD-ROM | disk | FTP | other *** search
- Path: fu.bekkoame.or.jp!usenet
- From: Giles Goddard <giles@fumin.nintendo.co.jp>
- Newsgroups: comp.lang.c++
- Subject: Re: calling a function in library compiled with C
- Date: Wed, 21 Feb 1996 16:38:57 +0900
- Organization: Nintendo Co. Ltd. (Japan)
- Message-ID: <312ACC11.446B@fumin.nintendo.co.jp>
- References: <SAI.96Feb20154709@jasmine.okilab.oki.co.jp>
- NNTP-Posting-Host: osk0072.bekkoame.or.jp
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-2022-jp
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; IRIX 5.3 IP22)
-
- > Cui Jin wrote:
-
- > a problem with calling C routines from C++
-
-
- Try putting this in your header file:
-
- extern "C" {
- int cbopen(char *);
- }
-
-
-
- it tells the compiler that 'cbopen' has C linkage.
-
-
- cheers,
- giles
-